//
//  XWJChageSoureDefultCell.swift
//  DZMeBookRead
//
//  Created by fox on 2017/8/31.
//  Copyright © 2017年 DZM. All rights reserved.
//

import UIKit

class XWJChageSoureDefultCell: UITableViewCell {

     var currenSele  = UILabel()
    var title = UILabel()
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        setupUI()
    }
    override func layoutSubviews() {
        super.layoutSubviews()
        title.frame = CGRect.init(x: 12, y: 0, width: 80, height: 44)
        currenSele.frame = CGRect.init(x: ScreenWidth - 100, y: 12, width: 60, height: 20)

    }
    func setupUI() {
        contentView.addSubview(title)
        title.text = "默认选择"
        title.font = UIFont.systemFont(ofSize: 17)
        title.textAlignment = .left
        
        currenSele.text = "当前选中"
        currenSele.textColor = UIColor.red
        currenSele.font = UIFont.systemFont(ofSize: 14)
        contentView.addSubview(currenSele)
        currenSele.isHidden = true
    }
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
